//
//  ViewController.m
//  04_Work
//
//  Created by dllo on 16/7/19.
//  Copyright © 2016年 yh. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()
@property (nonatomic, strong) UIImageView *backImageView;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
    self.view.backgroundColor = [UIColor whiteColor];
    self.backImageView = [[UIImageView alloc] initWithFrame:self.view.frame];
    [self.view addSubview:self.backImageView];
    UIImage *backImage = [UIImage imageNamed:@"u=4120016548,4190929560&fm=23&gp=0.jpg"];
    [self.backImageView setImage:backImage];
    UIBlurEffect *blur = [UIBlurEffect effectWithStyle:UIBlurEffectStyleDark];
    UIVisualEffectView *effectView = [[UIVisualEffectView alloc] initWithEffect:blur];
    effectView.frame = self.view.frame;
    [self.backImageView addSubview:effectView];
    
    UIButton *backButton = [UIButton buttonWithType:UIButtonTypeSystem];
    backButton.frame = CGRectMake(30, 30, 60, 40);
    [backButton setImage:[UIImage imageNamed:@"player_btn_close_normal"] forState:UIControlStateNormal];
    [effectView addSubview:backButton];
    
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

@end
